 
<script type="text/javascript">
var GID = "<? echo $this->path ?>";


function uploadComplete() {  
	$("#imagesContainer").load(url(GID),  null

);
		}

$(document).ready(
		function ()
		{
		$(":text").css('width', '100%');
		//init();
		    var upload1, upload2;
		    window.onload = function() {
		        upload1 = new SWFUpload({

		            upload_url: "<?php echo $this->baseUrl("files/bulk-upload")?>",
		            post_params: {"path" : "<?php echo str_replace("\\", "/",$this->path ); ?>"},

		            // File Upload Settings
		            file_size_limit : "102400", // 100MB
		            file_types : "*.*",
		            file_types_description : "All Files",
		            file_upload_limit : 30,
		            file_queue_limit : 0,
		            
		            swfupload_preload_handler : preLoad,
		            swfupload_load_failed_handler : loadFailed,
		            file_dialog_start_handler : fileDialogStart,
		            file_queued_handler : fileQueued,
		            file_queue_error_handler : fileQueueError,
		            file_dialog_complete_handler : fileDialogComplete,
		            upload_start_handler : uploadStart,
		            upload_progress_handler : uploadProgress,
		            upload_error_handler : uploadError,
		            upload_success_handler : uploadSuccess,
		            upload_complete_handler : uploadComplete,
		            button_image_url : "<?php echo $this->baseUrl ( "uploader/images/button.png" )?>",
		            button_placeholder_id : "spanButtonPlaceholder1",
		            button_width: 61,
		            button_height: 22,
		            flash_url : "<?php echo $this->baseUrl("uploader/swf/swfupload.swf" )?>",
		            flash9_url : "<?php echo $this->baseUrl("uploader/swf/swfupload_fp9.swf" )?>",
		            custom_settings : {
		                progressTarget : "fsUploadProgress1",
		                cancelButtonId : "btnCancel1"
		            },
		            debug: false
		        });

		     };
			
		}
				);

</script>

<form action="" method="post" enctype="multipart/form-data">
<table cellpadding="10">
	<tr>
		<td colspan="2">

		<div class="fieldset flash" id="fsUploadProgress1"><span
			class="legend">Загрузка файлов</span></div>
		<div style="padding-left: 5px;"><span id="spanButtonPlaceholder1"></span>
		<br />
		</div>
		</td>
	</tr>
</table>
</form>
<div id="btnCancel1"></div>
<script>
 
 
$(document).ready(uploadComplete);


</script>